package com.ljc.cjgl.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.ljc.cjgl.entitiy.ClassActitvity;
import com.ljc.cjgl.entitiy.TbClass;
@Repository
public interface ClassActivityRepository extends JpaRepository<ClassActitvity, Integer>, JpaSpecificationExecutor<ClassActitvity> {

	public List<ClassActitvity> findByTbClassId(Integer classId);
	
	@Query(value="select distinct t.tbClass from ClassActitvity t")
	public List<TbClass> findTbClass();

}
